import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/pages/Login'
import Register from '@/pages/Register'
import Home from '@/pages/Home'
import Main from '@/components/Main'
import Create from  '@/components/Create'
import Message from  '@/components/Message'
Vue.use(Router)
export default new Router({
  base: '/dist/',
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home,
      children: [
        {
          path: '/components/Main',
          name: 'Main',
          component: Main
        },
        {
          path: '/components/Create',
          name: 'Create',
          component: Create
        },
        {
          path: '/components/Message',
          name: 'Message',
          component: Message
        }
      ]
    },
    {
      path: '/login',
      name: 'Login',
      component: Login
    },
    {
      path: '/register',
      name: 'Register',
      component: Register
    },

    
  ]
})
